export default {
  namespaced: true,
  state: {
    userInfo: null
  },
  getters: {
    getUserInfo(state) {
	  return state.userInfo
    }
  },
  mutations: {
    updateUserInfo(state, { userInfo, message = '用户信息已保存' }) {
      state.userInfo = userInfo
      message &&
        uni.showToast({
          title: message,
          icon: 'none'
        })
    }
  }
}
